package com.moliku.insurance.model.entity.ChongQing;

import com.moliku.insurance.model.entity.ChongQing.Benefit;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import java.util.List;

/**
 * @ClassName 赵项阳
 * @Description: TODO
 * @Author DELL
 * @Date 2021/2/27
 * @Version V1.0 要成集合的样子
 **/


public class Insured {

    /**
     *被保险人序列号:1，2，3……，标识每个被保险人的序号，如XML含多个<Insured>节点，则InsuredSeqNo值应唯一。
    */
    private String InsuredSeqNo;

    /**
     *  被保险人姓名
    */
    private String InsuredName;

    /**
     * 被保险人与投保人的关系取值范围及含义如下：
     *     0--本人
     *     1--配偶
     *     2--父母
     *     3--子女
     *     5--兄弟姐妹
     *     6--祖父母、外祖父母
     *     7--雇佣
     *     9--其他
    */
    private String InsuredIdentity;


    /**
     * 被保险人证件类型:规则同投保人证件类型
    */
    private String InsuredIdType;


    /**
     * 被保险人证件号:规则同投保人证件号
    */
    private String InsuredIdNo;

    private String InsuredSex;

    private List<Benefit> benefitList;

    @XmlElementWrapper(name="Benefits")
    @XmlElement(name="Benefit")
    public List<Benefit> getBenefitList() {
        return benefitList;
    }

    public void setBenefitList(List<Benefit> benefitList) {
        this.benefitList = benefitList;
    }

    public String getInsuredSex() {
        return InsuredSex;
    }

    public void setInsuredSex(String insuredSex) {
        InsuredSex = insuredSex;
    }

    public String getInsuredSeqNo() {
        return InsuredSeqNo;
    }

    public void setInsuredSeqNo(String insuredSeqNo) {
        InsuredSeqNo = insuredSeqNo;
    }

    public String getInsuredName() {
        return InsuredName;
    }

    public void setInsuredName(String insuredName) {
        InsuredName = insuredName;
    }

    public String getInsuredIdentity() {
        return InsuredIdentity;
    }

    public void setInsuredIdentity(String insuredIdentity) {
        InsuredIdentity = insuredIdentity;
    }

    public String getInsuredIdType() {
        return InsuredIdType;
    }

    public void setInsuredIdType(String insuredIdType) {
        InsuredIdType = insuredIdType;
    }

    public String getInsuredIdNo() {
        return InsuredIdNo;
    }

    public void setInsuredIdNo(String insuredIdNo) {
        InsuredIdNo = insuredIdNo;
    }
}
